package com.wing.ext.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.wing.common.util.DateUtils;


@Entity
@Table(name = "ext_messageboard")
public class  Messageboard {

  	@Id
  	@Column(name = "id")
  	private String id;
	@Column(name="site_id")
	private String site_id;
  	@Column(name = "title")
  	private String title;
  	@Column(name = "content")
  	private String content;
  	@Column(name = "name")
  	private String name;
  	@Column(name = "sex")
  	private String sex;
  	@Column(name = "email")
  	private String email;
  	@Column(name = "phone")
  	private String phone;
  	@Column(name = "mobile")
  	private String mobile;
  	@Column(name = "address")
  	private String address;
	@Column(name="createtime")
	private Date createtime;
  
  

  	public void  setId(String id){
  		this.id = id;
  	}
	public String getId(){
  		return this.id; 
  	}
  	public void  setTitle(String title){
  		this.title = title;
  	}
	public String getTitle(){
  		return this.title; 
  	}
  	public void  setContent(String content){
  		this.content = content;
  	}
	public String getContent(){
  		return this.content; 
  	}
  	public void  setName(String name){
  		this.name = name;
  	}
	public String getName(){
  		return this.name; 
  	}
  	public void  setSex(String sex){
  		this.sex = sex;
  	}
	public String getSex(){
  		return this.sex; 
  	}
  	public void  setEmail(String email){
  		this.email = email;
  	}
	public String getEmail(){
  		return this.email; 
  	}
  	public void  setPhone(String phone){
  		this.phone = phone;
  	}
	public String getPhone(){
  		return this.phone; 
  	}
  	public void  setMobile(String mobile){
  		this.mobile = mobile;
  	}
	public String getMobile(){
  		return this.mobile; 
  	}
  	public void  setAddress(String address){
  		this.address = address;
  	}
	public String getAddress(){
  		return this.address; 
  	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public String getCreatetimev() {
		return DateUtils.datetimeToString(createtime);
	}
	public void setCreatetimev(String createtime) {
		this.setCreatetime(DateUtils.stringToDatetime(createtime));
	}
	public String getSite_id() {
		return site_id;
	}
	public void setSite_id(String site_id) {
		this.site_id = site_id;
	}

}
